﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Teachers:Person
    {
        private string title;
        private string wageno;
        public string Title
        {
            get { return this.title; }
            set { this.title = value; }
        }
        public string Wageno
        {
            get { return this.wageno; }
            set { this.wageno = value; }
        }
        public void student(string major, string garde)
        {
            this.title = major;
            this.wageno = garde;
        }
    }
}
